// import { defaultRoutePath } from "@/utils/constant";
// eslint-disable-next-line
import { UserLayout, BasicLayout, BlankLayout } from '@/layouts'
// import { bxAnaalyse } from "@/core/icons";

export const asyncRouterMap = [
  {
    path: '/',
    name: 'index',
    component: BasicLayout,
    meta: { title: '首页' },
    redirect: '/banner',
    children: [
      // 轮播图管理
      {
        path: '/banner',
        name: 'banner',
        component: () => import('@/views/bannerMange/index'),
        meta: {
          title: '轮播图管理',
          keepAlive: true,
          icon: 'profile'
        }
      },
      // 求职者管理
      {
        path: '/job-seeker',
        name: 'jobSeeker',
        component: () => import('@/views/jobSeeker/index'),
        meta: {
          title: '求职者管理',
          keepAlive: true,
          icon: 'table'
        }
      },
      // 企业管理
      {
        path: '/company',
        name: 'companyMange',
        component: () => import('@/views/companyMange/index'),
        meta: {
          title: '企业管理',
          keepAlive: true,
          icon: 'tool'
        }
      },
      // 岗位管理
      {
        path: '/job-mange',
        name: 'jobMange',
        component: () => import('@/views/jobMange/index'),
        meta: {
          title: '岗位管理',
          keepAlive: true,
          icon: 'check-circle-o'
        }
      },
      // 数据中心
      {
        path: '/data-center',
        name: 'dataCenter',
        component: () => import('@/views/dataCenter/index'),
        meta: {
          title: '公告管理',
          keepAlive: true,
          icon: 'fund'
        }
      },
      // 个人中心
      {
        path: '/mine-center',
        name: 'mineCenter',
        component: () => import('@/views/mineCenter/index'),
        meta: {
          title: '个人中心',
          keepAlive: true,
          icon: 'crown'
        }
      }
    ]
  },
  {
    path: '*',
    redirect: '/404',
    hidden: true
  }
]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login')
      },
      {
        path: 'recover',
        name: 'recover',
        component: undefined
      }
    ]
  },

  {
    path: '/screen',
    component: () => import('@/views/screen/index')
  },
  {
    path: '/404',
    component: () => import('@/views/exception/404')
  }
]
